<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="../swObtenerGrillaDA.wsdl"/>
      <rootElement name="OutputParameters" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/sp/swObtenerGrillaDA"/>
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="../swObtenerGrillaBPEL.wsdl"/>
      <rootElement name="MOSTRARGRILLAMR" namespace="http://mincetur.gob.pe/SIC/utilitarios/obtenerGrilla"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [FRI MAY 03 10:46:06 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:ns0="http://mincetur.gob.pe/SIC/utilitarios/grillaTipo"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:ns1="http://mincetur.gob.pe/SIC/utilitarios/obtenerGrilla"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns2="http://mincetur.gob.pe/SIC/utilitarios/errorMR"
                xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:client="http://mincetur.gob.pe/SIC/utilitarios/swObtenerGrilla/swObtenerGrillaBPEL"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/sp/swObtenerGrillaDA"
                xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/Servicios+Web/swGrilla/swObtenerGrillaDA"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl plt wsdl xsd db tns ns0 ns1 ns2 client xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:template match="/">
    <ns1:MOSTRARGRILLAMR>
      <ns1:GRILLA>
        <xsl:for-each select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row">
          <ns0:REGISTRO>
            <xsl:if test="db:ID_EVEN">
              <xsl:attribute name="ID_EVEN">
                <xsl:value-of select="db:ID_EVEN"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:DES_EVEN">
              <xsl:attribute name="DES_EVEN">
                <xsl:value-of select="db:DES_EVEN"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:ID_PERSCREADOR">
              <xsl:attribute name="ID_PERSCREADOR">
                <xsl:value-of select="db:ID_PERSCREADOR"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:DES_PERSCREADOR">
              <xsl:attribute name="DES_PERSCREADOR">
                <xsl:value-of select="db:DES_PERSCREADOR"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:ID_TROLPERSCREADOR">
              <xsl:attribute name="ID_TROLPERSCREADOR">
                <xsl:value-of select="db:ID_TROLPERSCREADOR"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:DES_TROLPERSCREADOR">
              <xsl:attribute name="DES_TROLPERSCREADOR">
                <xsl:value-of select="db:DES_TROLPERSCREADOR"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:NUM_EXPE">
              <xsl:attribute name="NUM_EXPE">
                <xsl:value-of select="db:NUM_EXPE"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:DES_DATOADIC">
              <xsl:attribute name="DES_DATOADIC">
                <xsl:value-of select="db:DES_DATOADIC"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:FLG_SILEADMI">
              <xsl:attribute name="FLG_SILEADMI">
                <xsl:value-of select="db:FLG_SILEADMI"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:DES_SILEADMI">
              <xsl:attribute name="DES_SILEADMI">
                <xsl:value-of select="db:DES_SILEADMI"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:FEC_DESDE">
              <xsl:attribute name="FEC_DESDE">
                <xsl:value-of select="db:FEC_DESDE"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:NUM_DIASPLAZ">
              <xsl:attribute name="NUM_DIASPLAZ">
                <xsl:value-of select="db:NUM_DIASPLAZ"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:FEC_HASTA">
              <xsl:attribute name="FEC_HASTA">
                <xsl:value-of select="db:FEC_HASTA"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:ID_ESTAEVEN">
              <xsl:attribute name="ID_ESTAEVEN">
                <xsl:value-of select="db:ID_ESTAEVEN"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:DES_ESTAEVEN">
              <xsl:attribute name="DES_ESTAEVEN">
                <xsl:value-of select="db:DES_ESTAEVEN"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:ACCION">
              <xsl:attribute name="ACCION">
                <xsl:value-of select="db:ACCION"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:OPCION">
              <xsl:attribute name="OPCION">
                <xsl:value-of select="db:OPCION"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:ALERTA">
              <xsl:attribute name="ALERTA">
                <xsl:value-of select="db:ALERTA"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:FEC_CREACION">
              <xsl:attribute name="FEC_CREACION">
                <xsl:value-of select="db:FEC_CREACION"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:COD_SCLASEEVEN">
              <xsl:attribute name="COD_SCLASEEVEN">
                <xsl:value-of select="db:COD_SCLASEEVEN"/>
              </xsl:attribute>
            </xsl:if>
          </ns0:REGISTRO>
        </xsl:for-each>
      </ns1:GRILLA>
      <ns1:ERROR>
        <xsl:attribute name="ID_ERROR">
          <xsl:value-of select="/db:OutputParameters/db:X_ID_ERROR"/>
        </xsl:attribute>
        <xsl:attribute name="DES_ERROR">
          <xsl:value-of select="/db:OutputParameters/db:X_DES_ERROR"/>
        </xsl:attribute>
        <xsl:attribute name="FEC_ERROR">
          <xsl:value-of select="/db:OutputParameters/db:X_FEC_ERROR"/>
        </xsl:attribute>
      </ns1:ERROR>
    </ns1:MOSTRARGRILLAMR>
  </xsl:template>
</xsl:stylesheet>
